package com.java.simple.smallspring.context.support;

import lombok.NoArgsConstructor;

/**
 * @author zhoujunlin
 * @date 2022年08月24日 10:32
 * @desc
 */
@NoArgsConstructor
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext {

    /**
     * 配置文件地址 可以多个
     */
    private String[] configLocations;

    public ClassPathXmlApplicationContext(String configLocation) {
        this(new String[]{configLocation});
    }

    public ClassPathXmlApplicationContext(String[] configLocations) {
        this.configLocations = configLocations;
        refresh();
    }

    @Override
    public String[] getConfigLocations() {
        return configLocations;
    }
}
